﻿<?xml version="1.0" encoding="utf-8" ?>

<objects xmlns="http://www.springframework.net">

  <!-- Cache aspect -->
  <object id="CacheAspect" type="Spring.Aspects.Cache.CacheAspect, Spring.Aop"/>
  <object id="AspNetCache" type="Spring.Caching.AspNetCache, Spring.Web"/>
  
  
  <!-- Apply aspects to DAOs -->
  <object type="Spring.Aop.Framework.AutoProxy.ObjectNameAutoProxyCreator, Spring.Aop">
    <property name="ObjectNames">
      <list>
        <value>*Dao</value>
      </list>
    </property>
    <property name="InterceptorNames">
      <list>
        <value>CacheAspect</value>
      </list>
    </property>
  </object>

  <object id="validationAdvice" type="Spring.Aspects.Validation.ParameterValidationAdvice, Spring.Aop"/>

  <object type="Spring.Aop.Framework.AutoProxy.ObjectNameAutoProxyCreator, Spring.Aop">
    <property name="ObjectNames">
      <list>
        <value>bookingAgent</value>
      </list>
    </property>
    <property name="InterceptorNames">
      <list>
        <value>validationAdvice</value>
      </list>
    </property>
  </object>

</objects>
